﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000EE RID: 238
	internal class ReadNextArray : IReadNextDecoder
	{
		// Token: 0x06000369 RID: 873 RVA: 0x0000C755 File Offset: 0x0000AB55
		private ReadNextArray()
		{
		}

		// Token: 0x0600036A RID: 874 RVA: 0x0000C760 File Offset: 0x0000AB60
		public int Read(byte[] bytes, int offset)
		{
			int num = offset;
			int num3;
			int num2 = MessagePackBinary.ReadArrayHeader(bytes, offset, out num3);
			offset += num3;
			for (int i = 0; i < num2; i++)
			{
				offset += MessagePackBinary.ReadNext(bytes, offset);
			}
			return offset - num;
		}

		// Token: 0x04000107 RID: 263
		internal static readonly IReadNextDecoder Instance = new ReadNextArray();
	}
}
